Backported Google Talk mail notification support and disabling of the mail notificati...
[adiumx.git] / Frameworks / Adium Framework / AIListCell.h
blobe7e9150f2d0fe82f9441f164db539aad5ac70666
1 /*
2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
4 *
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11 * Public License for more details.
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 @class AIListObject, AIListOutlineView;
19 @interface AIListCell : NSCell {
20 AIListOutlineView *controlView;
21 AIListObject *listObject;
22 BOOL isGroup;
24 NSTextAlignment textAlignment;
25 int labelFontHeight;
27 int topSpacing;
28 int bottomSpacing;
29 int topPadding;
30 int bottomPadding;
32 int leftPadding;
33 int rightPadding;
34 int leftSpacing;
35 int rightSpacing;
37 NSColor *textColor;
38 NSColor *invertedTextColor;
40 NSFont *font;
42 BOOL useAliasesAsRequested;
45 - (void)setListObject:(AIListObject *)inObject;
46 - (BOOL)isGroup;
47 - (void)setControlView:(AIListOutlineView *)inControlView;
49 //Display options
50 - (void)setFont:(NSFont *)inFont;
51 - (NSFont *)font;
52 - (void)setTextAlignment:(NSTextAlignment)inAlignment;
53 - (NSTextAlignment)textAlignment;
54 - (void)setTextColor:(NSColor *)inColor;
55 - (NSColor *)textColor;
56 - (void)setInvertedTextColor:(NSColor *)inColor;
57 - (NSColor *)invertedTextColor;
59 //Cell sizing and padding
60 - (NSSize)cellSize;
61 - (int)cellWidth;
62 - (void)setSplitVerticalSpacing:(int)inSpacing;
63 - (void)setTopSpacing:(int)inSpacing;
64 - (int)topSpacing;
65 - (void)setBottomSpacing:(int)inSpacing;
66 - (int)bottomSpacing;
67 - (void)setLeftSpacing:(int)inSpacing;
68 - (int)leftSpacing;
69 - (void)setRightSpacing:(int)inSpacing;
70 - (int)rightSpacing;
71 - (void)setSplitVerticalPadding:(int)inPadding;
72 - (void)setTopPadding:(int)inPadding;
73 - (void)setBottomPadding:(int)inPadding;
74 - (int)topPadding;
75 - (int)bottomPadding;
76 - (void)setLeftPadding:(int)inPadding;
77 - (int)leftPadding;
78 - (void)setRightPadding:(int)inPadding;
79 - (int)rightPadding;
81 //Drawing
82 - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
83 - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
84 - (void)_drawHighlightWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
85 - (void)drawSelectionWithFrame:(NSRect)rect;
86 - (void)drawBackgroundWithFrame:(NSRect)rect;
87 - (void)drawContentWithFrame:(NSRect)rect;
88 - (NSRect)drawDisplayNameWithFrame:(NSRect)inRect;
89 - (NSString *)labelString;
90 - (NSDictionary *)labelAttributes;
91 - (NSDictionary *)additionalLabelAttributes;
92 - (NSColor *)textColor;
93 - (BOOL)cellIsSelected;
94 - (BOOL)drawGridBehindCell;
95 - (NSColor *)backgroundColor;
97 //Control over whether the cell will respect aliases and long display names
98 - (void)setUseAliasesAsRequested:(BOOL)flag;
100 @end